package cn.z2huo.knowledge.concurrency.synchronizedkeyword.plus;

/**
 * <p>
 *
 * @author z2huo
 */
class NoSafePlus {

    private Integer amount = 0;

    public void plus() {
        amount++;
    }

    public synchronized void syncPlus() {
        amount++;
    }

    public Integer getAmount() {
        return amount;
    }

}
